/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package czStvDpds.graphics3D.gui;

/**
 *
 * @author Ondra
 */
public class ButtonEvent {

    private String command;
    private LComponent source;
    private int mouseX, mouseY;

    /**
     * vytvori novou tlacitkovou udalost
     *
     * @param source component, ktery vytvoril udalost
     * @param command rozlisovaci string, ktery je predany komponentu (defaultne
     * popisek)
     * @param mouseX souradnice mysi pri vzniku udalosti
     * @param mouseY - || -
     */
    public ButtonEvent(LComponent source, String command, int mouseX, int mouseY) {
        this.command = command;
        this.source = source;
        this.mouseX = mouseX;
        this.mouseY = mouseY;
    }

    public String getCommand() {
        return command;
    }

    public LComponent getSource() {
        return source;
    }

    public int getMouseX() {
        return mouseX;
    }

    public int getMouseY() {
        return mouseY;
    }
}
